Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_log_config: Add log_formatter support and a JSON log_formatter #429

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

thomasmey
Copy link

No description provided.

}
else {
if(items[i].tag) { /* or check for constant_item function, don't escape those */
lfd->portions[i] = ap_escape_logitem(r->pool, lfd->portions[i]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly escaped twice for out-of-tree modules? Do we have to remember if the registration happened via ap_register_log_handler so we don't escape again?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I'll add another parameter to the new ap_register_log_handler_ex to indicate if the handler does escape the return value.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @covener I added something regarding the double escaping, can you please have a look at 237c60b

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MHH, one of the test workflow do fail not sure why. I'll check tomorrow:
https://github.com/thomasmey/httpd/actions/runs/9372712021/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I found the bug and did fix the commit and did force push, all tests are green again, please review

@rcanavan
Copy link

From a casual glance at the pull request, I assume that this does not enable JSON style escaping for ErrorLogFormat. Is this correct? If so, would it be possible to implement that as a followup?

@thomasmey
Copy link
Author

Yes, I think this is correct, but maybe it's not too hard to enhance this functionality to the error log, bigger problem is to get review eye balls and this pr merged..

🙇

@sebabetz
Copy link

sebabetz commented Dec 2, 2024

any progress with the review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants